<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%String cpath=request.getContextPath(); %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>쿠폰보기(출력)</title>
<link href="<%=cpath%>/resources/css/coupon_css.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function couponprint(){
	window.print();
	
}
</script>

</head>
<body>

<p>&nbsp;</p>
<table width="200" border="0" bgcolor="#CC6633" cellspacing="1" align="center" >
  <tr>
    <td bgcolor="#FFFFFF">
     <table width="500" height="140" border="0" cellspacing="1">
      <tr>
        <td width="176" height="150" rowspan="5" bgcolor="#FFFFFF" ><img src="/food/resources/coupon/${dto.coupon_image}" width="100" height="100"></td>
        <td width="317" height="20" bgcolor="#FFFFFF"><div align="left" class="style1">${dto.coupon_name}</div></td>
      </tr>
      <tr>
        <td height="15" bgcolor="#FFFFFF"><div align="left" class="style2">${dto.coupon_details}</div></td>
      </tr>
      <tr>
        <td height="20" bgcolor="#FFFFFF"><div align="left">-유의사항 : ${dto.coupon_notice}</div></td>
      </tr>
      <tr>
        <td height="20" bgcolor="#FFFFFF" rowspan="2"><div align="left">-유효기간 : ${dto.coupon_enddate}</div></td>
      </tr>
      <tr>
        <td height="40" bgcolor="#FFFFFF"></td>
      </tr>
      <tr>
      	<td colspan="2">
        <div align="center">
            <input type="button" class="box3" value="쿠폰인쇄" onClick="couponprint()">
        </div>
        </td>
      </tr>
     </table>
    </td>
  </tr>
</table>
<div align="center"><br>
 <input type="button" class="box1" value="창닫기" onClick="javascript:window.close()"></div>
<p>&nbsp;</p>
</body>
</html>